﻿namespace K9Nano.Dict;

/// <summary>
/// 字典数据工厂接口
/// </summary>
public interface IDictResolverFactory
{
    /// <summary>
    /// 根据字典名称获取字典数据接口
    /// </summary>
    /// <param name="name">字典名称</param>
    /// <returns></returns>
    IDictResolver? Create(string name);

    /// <summary>
    /// 获取所有字典数据的元数据
    /// </summary>
    /// <returns></returns>
    KeyValuePair<string, string>[] GetAllDictMeta();
}
